package com.jianyun.jyzs.bean;


import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "tb_sign")
public class Sign implements Serializable {
	private static final long serialVersionUID = 201508171532422L;

	public final static String ID_FIELD_NAME = "id";//这里用一个常量来设置属性的名字，这样我们在中就可以直接使用该名字
	public final static String TABLE_NAME= "tb_sign";
	
	@DatabaseField(generatedId=true,columnName=ID_FIELD_NAME)
	private Integer id ;
	@DatabaseField
	private String dateTime;
	@DatabaseField
	private String address;
	@DatabaseField
	private String dt;
	@DatabaseField
	private String morningTimeValid;//上午签到时间 0正常,1异常,-1 表示此时间端无信息
	@DatabaseField
	private String morningPlaceValid;//上午签到地点 0正常,1异常,-1 表示此时间端无信息
	@DatabaseField
	private String afternoonTimeValid;//下午签到时间 0正常,1异常,-1 表示此时间端无信息
	@DatabaseField
	private String afternoonPlaceValid;//下午签到地点 0正常,1异常,-1 表示此时间端无信息
	@DatabaseField
	private String userId;
	@DatabaseField
	private String enterpriseCode;

	@Override
	public String toString() {
		return "Sign{" +
				"id=" + id +
				", dateTime='" + dateTime + '\'' +
				", address='" + address + '\'' +
				", dt='" + dt + '\'' +
				", morningTimeValid='" + morningTimeValid + '\'' +
				", morningPlaceValid='" + morningPlaceValid + '\'' +
				", afternoonTimeValid='" + afternoonTimeValid + '\'' +
				", afternoonPlaceValid='" + afternoonPlaceValid + '\'' +
				", userId='" + userId + '\'' +
				", enterpriseCode='" + enterpriseCode + '\'' +
				'}';
	}

	public Sign(){}

	public Sign(Integer id, String dateTime, String userId , String dt, String address, String enterpriseCode) {
		super();
		this.id = id;
		this.dateTime = dateTime;
		this.userId = userId;
		this.address = address;
		this.dt = dt;
		this.enterpriseCode = enterpriseCode;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDateTime() {
		return dateTime;
	}

	public String getDt() {
		return dt;
	}

	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	public void setDt(String dt) {
		this.dt = dt;
	}

	public void setDateTime(String dateTime) {
		this.dateTime = dateTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMorningTimeValid() {
		return morningTimeValid;
	}

	public void setMorningTimeValid(String morningTimeValid) {
		this.morningTimeValid = morningTimeValid;
	}

	public String getMorningPlaceValid() {
		return morningPlaceValid;
	}

	public void setMorningPlaceValid(String morningPlaceValid) {
		this.morningPlaceValid = morningPlaceValid;
	}

	public String getAfternoonTimeValid() {
		return afternoonTimeValid;
	}

	public void setAfternoonTimeValid(String afternoonTimeValid) {
		this.afternoonTimeValid = afternoonTimeValid;
	}

	public String getAfternoonPlaceValid() {
		return afternoonPlaceValid;
	}

	public void setAfternoonPlaceValid(String afternoonPlaceValid) {
		this.afternoonPlaceValid = afternoonPlaceValid;
	}

}
